//
//  ViewController.m
//  UI21_04_Block实现网络请求回调
//
//  Created by Scott on 16/4/7.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "ViewController.h"
#import "NetworkHandler.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    [self handleData];
}

- (void)handleData {
    
    [NetworkHandler networkHandlerGETWithURL:@"http://api.m.mtime.cn/News/NewsList.api?pageIndex=1" completionHandler:^(id result, NSURLResponse *response, NSError *error) {
    
        NSLog(@"%@", response);
        
        NSLog(@"%@", result);
        
    }];
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
